const originalGetApp = getApp;
getApp = function() {
    const appInstance = originalGetApp.apply(this, arguments);
    return new Proxy(appInstance, {
        get(target, prop) {
            if (prop === '$store' || prop === '$root' || prop === '$vm' || prop == '_self') return undefined;
            return target[prop];
        }
    });
};


import App from './App'

import store from './store'
Vue.prototype.$store = store

import quick_message from '@/components/quick-message/quick-message.vue'
Vue.component('quick-message',quick_message);

import GoEasy from 'goeasy'

Vue.prototype.goeasy = GoEasy.getInstance({
    host:"hangzhou.goeasy.io",
    appkey:"BC-bc8895d5a2d44174bc929628c5c9d9f1",
    modules:['pubsub']
});

import {
	request
} from '@/http/request.js';
Vue.prototype.$request = request;

import common from '@/common/common.js';
Vue.prototype.$common = common;

import help from '@/common/help.js';
Vue.prototype.$help = help;

import dictionary from '@/common/dictionary.js'
Vue.prototype.$dictionary = dictionary

import formula from '@/common/formula.js'
Vue.prototype.$formula = formula



// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif